package com.study.design.state;

import lombok.extern.slf4j.Slf4j;


/**
 * @version V1.0
 * @title: NooState
 * @description: ${DESCRIPTION}
 * @author: wanghuilong
 * @date: 2019-06-26 11:53
 * @copyright: http://fingo.com.my/
 */
@Slf4j
public class NooState extends State {
    @Override
    public void WriteProgram(Work w) {
        log.info("addLogStart WriteProgram InputParam: w : {} ", w);

        if (w.getHour() < 13) {
            System.out.println("当前时间：" + w.getHour() + "点 饿了，午饭：犯困，午休");
        } else {
            w.setCurrent(new AfternooState());
            w.WriteProgram();
        }
    }
}
